<template>
	<view>
		<view class="mt-2 py-2 bg-white">
			<view class="px-2 d-flex j-sb font">
				<text class="text-dark">订单号：202501011619</text>
				<text class="font-theme-color">交易成功</text>
			</view>
			<view class="d-flex mt-2 px-2">
				<view style="width: 148rpx; height: 148rpx;" class="rounded over-hidden">
					<image src="/static/product/goods1.jpg" class="w-100 h-100"></image>
				</view>
				<view class="flex-1 font text-dark pl-2">
						多美卡TOMY合金小汽车模型玩具头文字D藤原拓海AE86新年礼物486466
				</view>
				<view class="text-right" style="width: 140rpx;">
					<view class="font text-dark">￥1499</view>
					<view class="font-sm text-grey">x1</view>
				</view>
			</view>
			<view class="mt-2 border-top border-bottom py-2 text-right pr-2">
				<text class="font font-dark">实付：￥1499</text>
			</view>
			<view class="mt-2 px-2 d-flex j-end font">
				<view class="border px-2 py-1 border-dark rounded">删除订单</view>
			</view>
		</view>
		<view class="mt-2 py-2 bg-white">
			<view class="px-2 d-flex j-sb font">
				<text class="text-dark">订单号：202501011619</text>
				<text class="font-theme-color">交易成功</text>
			</view>
			<view class="d-flex mt-2 px-2">
				<view style="width: 148rpx; height: 148rpx;" class="rounded over-hidden">
					<image src="/static/product/goods1.jpg" class="w-100 h-100"></image>
				</view>
				<view class="flex-1 font text-dark pl-2">
						多美卡TOMY合金小汽车模型玩具头文字D藤原拓海AE86新年礼物486466
				</view>
				<view class="text-right" style="width: 140rpx;">
					<view class="font text-dark">￥1499</view>
					<view class="font-sm text-grey">x1</view>
				</view>
			</view>
			<view class="mt-2 border-top border-bottom py-2 text-right pr-2">
				<text class="font font-dark">实付：￥1499</text>
			</view>
			<view class="mt-2 px-2 d-flex j-end font">
				<view class="border px-2 py-1 border-dark rounded">删除订单</view>
			</view>
		</view>
	</view>
</template>

<script setup>
import {onShow} from "@dcloudio/uni-app"
import useAuthStore from '../../stores/auth';

const authStore = useAuthStore();
onShow(() => {
  if(!authStore.is_logined){
    uni.redirectTo({
      url: "/pages/login/login"
    })
  }
})

</script>

<style>
	       
</style>
